aboutsummaryrefslogtreecommitdiff
path: root/src/pages/[...page].astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-13 03:26:08 +0300
committerValentin Popov <valentin@popov.link>2024-09-13 03:26:08 +0300
commit5217bcb24ceac2e7d441586edc56feba60b482a9 (patch)
tree9e8f10a6183fc19daa94dcc798567a23b7b641a1 /src/pages/[...page].astro
parent4a821edd509151769ad0a67ac520653ae374f73c (diff)
downloadpopov.link-5217bcb24ceac2e7d441586edc56feba60b482a9.tar.xz
popov.link-5217bcb24ceac2e7d441586edc56feba60b482a9.zip
Refactor Pagination component to update page size in getStaticPaths
Diffstat (limited to 'src/pages/[...page].astro')
-rw-r--r--src/pages/[...page].astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/[...page].astro b/src/pages/[...page].astro
index 2a6f5cc..42f84b3 100644
--- a/src/pages/[...page].astro
+++ b/src/pages/[...page].astro
@@ -12,7 +12,7 @@ export const getStaticPaths = (async ({ paginate }) => {
posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime());
return paginate(posts, {
- pageSize: 5,
+ pageSize: 10,
});
}) satisfies GetStaticPaths;